import numpy as np
import pandas as pd
a=pd.Series([1,4,7,10])
print(a)
b=np.array([1,4,7,10])
c=pd.Series(b,['a','b','c','d'])
print(c)
e=pd.Series({'a':1,'b':4,'c':7,'d':10})
print(e)
id=['Zhc','Yyz','Mc','Mzl','Mfj']
co=['物理','化学','数学']
dict={'物理':[120,0,11,30,6],'化学':[110,0,90,33,70],'数学':[120,0,40,50,60]}
c=pd.DataFrame(dict,id)
print(c)
list=[[120,120,120],[0,5,59],[120,20,61],[120,59,66]]
id=['Zhc','Yyz','Mfj','Mc']
co=['语文','数学','英语']
df=pd.DataFrame(list,id,co)
print(df)
print(df['语文'])
print((df[['语文','数学']]))
print((df[['语文','数学']]['Zhc':'Yyz']))
print(df.values)
print(df.dtypes)
print(df.index)
print(df.columns)
print(df.T)
print(df.head(3))
print(df.tail(3))
print(df.shape)
print(df.info)
